import Select from './select/select.vue'
import Button from './button/button.vue'
import Date from './date/date.vue'
import Input from './input/input.vue'
import Table from './table/table.vue'
const components = {
  Select,
  Button,
  Date,
  Input,
  Table
}
const install = function (Vue, opts = {}) {
  for (const key in components) {
    if (components.hasOwnProperty(key)) {
      Vue.component(components[key].name, components[key])
    }
  }
}

/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

export default {
  version: '1.0.0',
  install,
  ...components
}